Global Index
HTML5 JS API Index > WebGL Tutorials & Specs

WebGLContextAttributes

The WebGLContextAttributes dictionary contains drawing surface attributes and is passed as the second parameter to getContext.

This type represents a collection of object properties and does not have an explicit JavaScript representation.

Properties
GLbooleanalpha = true
GLbooleanantialias = true
GLbooleandepth = true
GLbooleanfailIfMajorPerformanceCaveat = false
GLbooleanpreferLowPowerToHighPerformance = false
GLbooleanpremultipliedAlpha = true
GLbooleanpreserveDrawingBuffer = false
GLbooleanstencil = false
Referenced by
WebGLRenderingContextBasegetContextAttributes()